package Pearl.mod;

import java.sql.SQLException;
import java.util.ArrayList;

import org.apache.log4j.Logger;

import Pearl.beans.Address;
import Pearl.dao.AddressDao;
import Pearl.dao.AddressDaoImp;

public class AddressMod {


	private static final Logger log =Logger.getLogger(UsersMod.class);
	
	public ArrayList<Address> rechAd(){
		AddressDao adMod = new AddressDaoImp();
		ArrayList<Address>  ad = new ArrayList<Address>();
	
		try{
			ad = adMod.rechAddress();
			log.debug("rech address : OK");
		}
		catch(SQLException e){
			e.printStackTrace();
			log.error("rech Mod : error");
		}
		return ad;
	}
	
}
